<?php session_start();
validaAcesso();
echo "<h2>Cadastro de ".$_SESSION["menu"]["cad"][16]."</h2>";

require_once"funcoes/com_idiomas.jsp";

if(isset($_GET[grava])==1){    
    setIdioma(0,$_POST["pnome"]);
}
?>
<form method="POST" action="index.jsp?grava=1&cad=16" autocomplete="off">
<div class='item'><h5>Idioma:</h5><input type="text" size="20" maxlength="20" name="pnome"> Ex: Espanhol, Russo</div>
<br>
<div class='item'><h5>&nbsp;</h5><input type="submit" value="cadastrar"></div>

</form>


<?php
getIdioma(0,"lista");
?>